package com.dayu.mybatis_plus.generator.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author dayu
 * @since 2021-11-19
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty(value = "主键ID")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty(value = "姓名")
      private String name;

      @ApiModelProperty(value = "年龄")
      private Integer age;

      @ApiModelProperty(value = "邮箱")
      private String email;

      @ApiModelProperty(value = "创建时间")
      private LocalDateTime createTime;

      @ApiModelProperty(value = "修改时间")
      private LocalDateTime updateTime;

      @ApiModelProperty(value = "乐观锁")
      private Integer version;

      @ApiModelProperty(value = "上班状态")
      private String status;

      @ApiModelProperty(value = "是否删除0否 1是")
      private Integer isDel;


}
